﻿var 月杪 = "#fMap/MapHelper.img/mark/MoonRabbitParty#";
var 怪物公园 = "#fMap/MapHelper.img/mark/Carnival#";
var 黄金寺庙 = "#fMap/MapHelper.img/mark/GoldTempleTH#";
var 逃脱 = "#fMap/MapHelper.img/mark/LionCastle#";
var 废弃任务 = "#fMap/MapHelper.img/mark/KerningParty#";
var 鬼魂公园 = "#fMap/MapHelper.img/mark/GhostPark#";
var 玩具任务 = "#fMap/MapHelper.img/mark/LudiTower1#";
var 次元入侵 = "#fMap/MapHelper.img/mark/Pantheon#";
var 冰骑士 = "#fMap/MapHelper.img/mark/IceKnight#";
var 御魔龙 = "#fMap/MapHelper.img/mark/IceKnight#";
var 罗密欧 = "#fMap/MapHelper.img/mark/RomioJuliet#";
var 海盗船 = "#fMap/MapHelper.img/mark/GhostShip#";
var 御魔龙 = "#fMap/MapHelper.img/mark/Dragonrider#";
var 秦始皇 = "#fMap/MapHelper.img/mark/Akayrum#";
var 外星 = "#fMap/MapHelper.img/mark/OmegaSector#";
var z12 = "#fMap/MapHelper.img/weather/present/1#"; //礼物绿Pantheon
var a = 0;
function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (status == 0 && mode == 0) {
		cm.dispose();
		return;
	}
	if (mode == 1) {
		status++;
	} else {
		status--;
	}
	if (status == 0) {
		var selStr = " #e#rPPMS冒险岛·个人副本" + "#n\r\n";
		selStr += " PS：组队奖励：PPMS微积分·PPMS活跃值·抵用券 " + "\r\n";

		selStr += "#d#e#L0#" + 月杪 + "月妙·组队任务#l #L3#" + 逃脱 + "逃脱·任务#l\r\n";
		selStr += "#d#e#L4#" + 废弃任务 + "废弃组队·任务 #l#L2#" + 御魔龙 + "御魔龙·任务#l\r\n#L1#" + 玩具任务 + "玩具组队·任务 #l#L19#" + 次元入侵 + "次元入侵·任务#l\r\n"
		selStr += "#d#e#L21#" + 海盗船 + "消灭海盗·任务 #l#L7#" + 外星 + "外星入侵·任务#l\r\n"
		selStr += "#d#e#L22#" + 秦始皇 + "臥虎藏龍·任务 "
		cm.sendSimple(selStr);
	} else if (status == 1) {
		switch (selection) {
		case 0: //月杪·任务·任务 ok
			cm.dispose();
			cm.warp(933000000);
			break;
		case 1: //玩具城·任务 ok
			cm.dispose();
			cm.warp(221023300);
			break;
		case 2: //御龙魔 ok
			cm.dispose();
			cm.warp(240080000);
			break;
		case 3: //逃脱 ok
			cm.dispose();
			cm.warp(921160000);
			break;
		case 4: //废弃任务 ok
			cm.dispose();
			cm.warp(910340700);
			break;
		case 5: //冰骑士 ok
			cm.dispose();
			cm.openNpc(2159018);
			break;
		case 6: //坎特 ok
			cm.dispose();
			cm.warp(923040000);
			break;
		//case 7: //罗密欧
			//cm.dispose();
			//cm.openNpc(2112004);
			//break;
		case 19: //次元入侵·任务ok
			cm.dispose();
			cm.warp(940020000);
			break;
		case 21: //消灭海盗·任务 ok
			cm.dispose();
			cm.warp(251010404);
			break;
		case 22: //臥虎藏龍·任务 ok
			cm.dispose();
			cm.warp(706041008);
			break;
		case 24://外星入侵
			cm.dispose();
			cm.warp(861000000, 0);
			break;			
		case 23: //黄金寺院 ok
			cm.dispose();
			cm.warp(252030000);
			break;
		}
	}
}
